#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>

#define filename "log.txt"

int main()
{
   const char *fstr = "hello fwrite\n";
   const char *str = "hello write\n";

   printf("hello printf\n");
   fprintf(stdout, "hello fprintf\n");
   fwrite(fstr, strlen(fstr), 1, stdout);

    write(1, str, strlen(str));
   // close(1);

   fork();
   
   return 0;
}

